Download
FAQ
History
HomeHomeNext API
Search
Feedback
Divider

J2EE 1.4 Application Server

This section contains a brief summary of the components comprising the J2EE 1.4 Application Server, the configuration steps required before using the components to build and deploy the tutorial examples, and instructions for starting and stopping the main components. The last section in this chapter discusses how to run the PointBase database server; other chapters explain how to use the remaining components.

Components

The J2EE 1.4 Application Server contains the components listed in Table 3-1

Table 3-1 J2EE 1.4 Application Server Components 
Component
Description
asadmin
Runs the application server administration utility. Used to start and stop the application server.
asant
A portable build tool that is an extension of the Ant tool developed by the Apache Software Foundation. asant contains additional tasks that interact with the application server administration utility.
appclient
Launches the application client container and invokes the client application packaged in the application JAR file.
capture-schema
Extracts schema information from a database, producing a schema file that the application server can use for container-managed persistence.
deploytool
Packages J2EE applications, generates deployment descriptors, and deploys J2EE applications on the application server.
package-appclient
Packages the application client container libraries and JAR files.
PointBase database
An evaluation copy of the PointBase database server.
verifier
Validates J2EE deployment descriptors.
wscompile
Generates stubs, ties, serializers, and WSDL files used in JAX-RPC clients and services.
wsdeploy
Generates an implementation-specific, ready-to-deploy WAR file for Web service applications that use JAX-RPC.

Setting Up To Build and Deploy Tutorial Examples

You use asant to build the tutorial examples and configure the application server. In order to run the asant scripts, you must configure your environment and the tutorial properties files as follows:

Starting and Stopping the J2EE Application Server

To start and stop the J2EE application server, you use the asadmin utility. To start the J2EE application server, open a terminal window or command prompt and execute this command:

asadmin start-domain 

A domain is a set of one or more application server instances managed by one administration server. Associated with a domain is:

You specified these values when you installed the J2EE 1.4 Application Server. The examples in this tutorial assume that you have chosen the default port.

With no arguments, the start-domain command initiates the default domain, which is domain1.

On Windows, from the Start menu, choose

ProgramsRight ArrowSun MicrosystemsRight ArrowJ2EE 1.4 SDKRight ArrowStart Application Server

After the server has started, you will see the following output:

Domain domain1 Started. 

To stop the J2EE application server, execute the following command:

asadmin stop-domain 

On Windows, from the Start menu, choose

ProgramsRight ArrowSun MicrosystemsRight ArrowJ2EE 1.4 SDKRight ArrowStop Application Server

When the server has stopped you will see the following output:

Domain domain1 stopped. 

Starting the deploytool Utility

The deploytool utility is the GUI tool used to package Web applications, specify deployment descriptor elements, and deploy applications on the J2EE application server. To start deploytool, open a terminal window or command prompt and execute this command:

deploytool 

On Windows, from the Start menu, choose

ProgramsRight ArrowSun MicrosystemsRight ArrowJ2EE 1.4 SDKRight ArrowDeploytool

Divider
Download
FAQ
History
HomeHomeNext API
Search
Feedback
Divider

All of the material in The J2EE 1.4 Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.